<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>css3</title>
    <style>
      /* 1. */
      /* h1 ~ p {
              color: red;
            } */

      /* 2. */
      /* p~p{
              color: brown;
            } */

      /* 3. */
      /* li:first-child {
              color: red;
            } */
      /* li:last-child{
              color: red;
            } */
      /* li:nth-child(4){
              color: red;
            } */
      /* 偶数
            li:nth-child(even){
              color: red;
            } */
      /* 奇数
            li:nth-child(odd){
              color: red;
            } */

      /* 4. */
      /* ul:last-of-type {
              color: red;
            }
            ul:first-of-type {
              color: red;
            } */
      /* 除了第几个其他都选中
            ul:not(:nth-of-type(2)){
              color: red;
            } */

      /* 5. */
      /* input::placeholder {
              color: red;
              background-color: aqua;
            } */
      /* a::selection{
              color: red;
            } */

      /* ul li:not([class^="i"]):nth-child(even) {
              color: rgb(132, 0, 255);
            } */

      /* 6. */
      /* <!-- 文本阴影 --> */
      /* a {
              font-size: 100px;
              color: palevioletred;
              text-shadow: 10px 10px 10px pink, 15px 15px 10px rgb(167, 246, 188),
                20px 20px 10px rgb(153, 213, 239);
            } */
      /* <!-- 文本描边 --> */
      /* a {
              -webkit-text-stroke: 2px palevioletred;
            } */
      /* 镂空文字 */
      /* a {
              color: transparent;
            } */

      /* 7. */
      /* div {
              width: 150px;
              height: 22px;
              background-color: rgb(101, 155, 137);
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            } */

      /* 8. */
      /* div {
              width: 500px;
              height: 300px;
              background-color: rgb(101, 155, 137); */
      /* 使用word-wrap或word-break */
      /* word-wrap: break-word; */
      /* word-wrap: normal; */
      /* word-break: keep-all; */
      /* word-break: break-all; */
      /* } */

      /* 9. */
      /* a {
              font-family: BAILEYSC;
              font-size: 50px;
            }

            @font-face {
              font-family: BAILEYSC;
              src: url(./BAILEYSC.TTF);
            } */

      /* 10. */
      /*div {
              width: 200px;
              height: 200px;
              border: 50px solid;
              background-color: pink;
              border-color: palevioletred;
              border-image: url(./1..png) 27 /* repeat */ /*round;
            }*/


      /* .a {
        width: 200px;
        height: 100px;
        border: 50px solid;
        border-image: url("./科技.png") 54 stretch;
      }
      .b {
        width: 200px;
        height: 500px;
        border: 50px solid;
        border-image: url("./科技.png") 54 stretch;
      }
      .c {
        width: 200px;
        height: 0px;
        border: 50px solid;
        border-image: url("./科技.png") 54 stretch;
      }
      * {
        margin: 0;
        padding: 0;
      }
      div {
        height: 950px;
        background-color: rgb(180, 180, 235);
      } */
    </style>
  </head>
  <body>
    <!-- 选择器 -->
    <!-- 1.选择h1元素后面的所有同级p元素 -->
    <!-- <h1>
      <p>b</p>
    </h1>
    <p>a</p>
    <p>a</p>
    <p>a</p> -->
    <!-- 2.选择p元素后面的所有同级p元素，除了第一个p元素 -->
    <!-- <p>a</p>
    <p>b</p>
    <p>b</p>
    <p>b</p> -->

    <!--3. 选择父元素下的子元素 -->
    <!-- <ul>
      <li>1</li>
      <li>2</li>
      <li>3</li>
      <li>4</li>
      <li>5</li>
      <li>6</li>
    </ul> -->

    <!--4. 选择同级元素 -->
    <!-- <ul>
      <li>1</li>
      <li>2</li>
    </ul>
    <ul>
      <li>1</li>
      <li>2</li>
    </ul>
    <ul>
      <li>1</li>
      <li>2</li>
    </ul> -->

    <!-- 5.伪元素选择器 -->
    <!-- 改变表单中文字的样式 -->
    <!-- <input placeholder="asdsad" /> -->
    <!-- 鼠标选择文本时的文本 -->
    <!-- <a>sdfdsfds</a> -->
    <!-- 选中ul标签中所有不以i开头的偶数 -->
    <!-- <ul>
      <li>1</li>
      <li class="i">2</li>
      <li>3</li>
      <li class="i e">4</li>
    </ul>
    <ul>
      <li>1</li>
      <li>2</li>
    </ul>
    <ul>
      <li>1</li>
      <li class="i e">2</li>
      <li>3</li>
      <li>4</li>
    </ul> -->

    <!-- 6.文本阴影 -->
    <!-- <a>周杰伦</a> -->

    <!-- 7.文本溢出 -->
    <!-- <div>白杨木影子被拉长，像我对你的思念走不完</div> -->

    <!-- 8.强制换行 -->
    <!-- <div>
      No one’s born being good at all things. You become good at things through
      hard work. You’re not a varsity athlete the first time you play a new
      sport. You don’t hit every note the first time you sing a song.You’ve got
      to practice. The same principle applies to your schoolwork. You might have
      to do a math problem a few times before you get it right. You might have
      to read something a few times before you understand it.You definitely have
      to do a few drafts of a paper before it’s good enough to hand in
    </div> -->

    <!-- 9.安装字体 -->
    <!-- <a> No one’s born being good at all things. </a> -->

    <!-- 10.边框背景 -->
    <!-- <div></div> -->
    
    <!-- <div>
      <div class="a"></div>
      <div class="b"></div>
      <div class="c"></div>
    </div> -->



    
  </body>
</html>
